package seckill

import "crmeb-common/global"

// SeckillActivity 秒杀活动表
type SeckillActivity struct {
	global.BaseModel
	Name string `json:"name" gorm:"column=name;comment:秒杀活动名称"`

	StartDate string `json:"startDate" gorm:"column=start_date;comment:秒杀开始日期"`

	EndDate string `json:"endDate" gorm:"column=end_date;comment:秒杀结束日期"`

	OneQuota int32 `json:"oneQuota" gorm:"column=one_quota;comment:活动期间单笔下单购买数量，0不限制"`

	AllQuota int32 `json:"allQuota" gorm:"column=all_quota;comment:全部活动期间，用户购买总数限制，0不限制"`

	MerStars int32 `json:"merStars" gorm:"column=mer_stars;comment:商家星级"`

	ProCategory string `json:"proCategory" gorm:"column=pro_category;comment:商品类型,英文逗号拼接"`

	IsOpen int32 `json:"isOpen" gorm:"column=is_open;comment:开启状态: 0=关闭 1=开启"`

	Status int32 `json:"status" gorm:"column=status;comment:状态:0未开始，1进行中，2已结束"`
}
